import request from '@/utils/request'

export class DeviceService {


// 查询鉴定设备列表
  static listDevice(query) {
    return request({
      url: '/api/sources/device/list',
      method: 'get',
      params: query
    })
  }

// 查询鉴定设备详细
  static getDevice(id) {
    return request({
      url: '/api/sources/device/' + id,
      method: 'get'
    })
  }

// 新增鉴定设备
  static addDevice(data) {
    return request({
      url: '/api/sources/device',
      method: 'post',
      data: data
    })
  }

// 修改鉴定设备
  static updateDevice(data) {
    return request({
      url: '/api/sources/device',
      method: 'put',
      data: data
    })
  }

// 删除鉴定设备
  static delDevice(id) {
    return request({
      url: '/api/sources/device/' + id,
      method: 'delete'
    })
  }

}
